-- GENERATED SPELL FOR [Stormforged Tracker] --


function spell0_29652(pUnit, Event) --@Lightning Gun Shot,n/a--
pUnit:FullCastSpellOnTarget(46982,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29652', 2000, 1)
end

function spell1_29652(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29652', 531, 1)
end

function Sorts_29652(pUnit, Event)
local choix_sorts_29652 = math.random(0, 1)
if choix_sorts_29652 == 0 then
pUnit:RegisterEvent('spell0_29652', 1, 1)
end
if choix_sorts_29652 == 1 then
pUnit:RegisterEvent('spell1_29652', 1, 1)
end
end

function mob29652_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29652', math.random(1500, 3000), 1)
end

function mob29652_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29652_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29652_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29652, 1, 'mob29652_Action')
RegisterUnitEvent(29652, 2, 'mob29652_Leave')
RegisterUnitEvent(29652, 3, 'mob29652_Kill')
RegisterUnitEvent(29652, 4, 'mob29652_Die')
